package com.yuyou.tas.service.api.report.service;

import com.yuyou.tas.service.api.report.dto.ExamModelVo;
import com.yuyou.tas.service.api.report.entity.ExamModelQues;
import com.yuyou.tas.service.api.report.entity.ExamModelRange;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "tas-report-service")
@RequestMapping(value = "/examAPI")
public interface ExamAPI {



	/**
	 * 根据机构主键查找所有试卷
	 * @param organId
	 * @return
	 */
	@RequestMapping(value = "/selectModelByOrganId", method = RequestMethod.POST)
	List<ExamModelVo> selectModelByOrganId(@RequestParam("organId")Long organId);

	/**
	 * 根据机构主键查找所有试卷班级关系
	 * @param organId
	 * @return
	 */
	@RequestMapping(value = "/selectRangeByOrganId", method = RequestMethod.POST)
	List<ExamModelRange> selectRangeByOrganId(@RequestParam("organId")Long organId);

	/**
	 * 根据机构获取全部试题
	 * @param organId
	 * @return
	 */
	@RequestMapping(value = "/selectQuesByOrganId", method = RequestMethod.POST)
	List<ExamModelQues> selectQuesByOrganId(@RequestParam("organId")Long organId);



}
